<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

namespace app\controller\adminapi\platform\work_wechat;

use app\controller\adminapi\platform\PlatformController;
use app\common\model\wework\WeworkKfMsg;
use think\App;

class WorkWechatKfMsg extends PlatformController
{
    /**
     * @var WeworkKfMsg
     */
    private WeworkKfMsg $model;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = new WeworkKfMsg();
    }

    /**
     * 显示资源列表
     * @Route("WechatUser", method="GET")
     * @return \think\Response
     */
    public function index()
    {
        $res = $this->model->getPageList();
        return $this->success($res['count'], $res['data']->append(['user']));
    }
}
